package com.wx.tnsbasedata.model;

import com.wx.tnsbasedata.model.vo.CityVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author 林建权
 * @version 1.0
 * @date 2020/7/25 15:32
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "城市")
public class CityModel {

    @ApiModelProperty(value = "城市id",example = "123")
    private Integer id;
    @ApiModelProperty(value = "父id",example = "123")
    private Integer pid;
    @ApiModelProperty(value = "城市名")
    private String cityName;
    @ApiModelProperty(value = "层级（省市县）",example = "123")
    private Integer type;
    @ApiModelProperty(value = "子级城市")
    private List<CityModel> children;
}